/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

export const baseRouter = {
  path: '/base',
  component: Layout,
  redirect: 'noRedirect',
  name: 'Base',
  meta: { title: '系统管理', icon: 'el-icon-s-tools', roles: false },
  children: [
    {
      path: 'user',
      name: 'User',
      component: () => import('@/views/base/user'),
      meta: { title: '用户管理', roles: false }
    },
    {
      path: 'role',
      name: 'Role',
      component: () => import('@/views/base/role'),
      meta: { title: '角色权限', roles: false }
    },
    {
      path: 'org',
      name: 'Org',
      component: () => import('@/views/base/org'),
      meta: { title: '组织机构', roles: false }
    },
    {
      path: 'menu',
      name: 'Menu',
      component: () => import('@/views/base/menu'),
      meta: { title: '菜单管理', roles: false }
    },
    {
      path: 'log',
      name: 'Log',
      component: () => import('@/views/base/log'),
      meta: { title: '日志查询', roles: false }
    }
  ]
}

export const baseViews = {
  id: 'Base',
  name: '系统管理',
  children: [
    {
      id: 'User',
      name: '用户管理'
    },
    {
      id: 'Role',
      name: '角色权限'
    },
    {
      id: 'Org',
      name: '组织机构'
    },
    {
      id: 'Menu',
      name: '菜单管理'
    },
    {
      id: 'Log',
      name: '日志查询'
    }
  ]
}

